<template>
  <div>
    <div class="wrap">
      <div v-for="item in arr" :key="item" class="video-wrap">
        <FlvTest :ref="`videoElement${item}`" :msg="`videoElement${item}`" />
      </div>
    </div>
    <div class="wrap">
      <div v-for="item in arr1" :key="item" class="video-wrap">
        <FlvTest :ref="`videoElement${item}`" :msg="`videoElement${item}`" />
      </div>
    </div>
    <div class="wrap">
      <div v-for="item in arr2" :key="item" class="video-wrap">
        <FlvTest :ref="`videoElement${item}`" :msg="`videoElement${item}`" />
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import FlvTest from '@/components/FlvTest.vue';
const arr = ref([1, 2, 3]);
const arr1 = ref([4, 5, 6]);
const arr2 = ref([7, 8, 9]);
</script>

<style lang="scss" scoped>
.wrap {
  display: flex;
}
.video-wrap {
  border: 1px solid #ccc;
  height: calc(100vh / 3);
  margin-left: 15px;
  flex-grow: 1;
  margin: 15px;
}
</style>
